from ..main import app
from luffycityapi.utils.ronglianyunAPI import send_sms as send_sms_to_user
import os

# 一定要加！！！
os.environ.setdefault('FORKED_BY_MULTIPROCESSING', '1')


@app.task(name="send_sms")
def send_sms(tid, mobile, datas):
    """发送短信"""
    return send_sms_to_user(tid, mobile, datas)
